<%@ page session="false" %>
<jsp:useBean id="loginBean" scope="page" class="model1.LoginBean" />
<%
            if (loginBean.login(request.getParameter("Nama"),
                    request.getParameter("Password"))) {
                request.getRequestDispatcher("adminFormUtama.jsp").forward(request, response);
            } else //we have to use sendRedirect because we want to send the ?error part
            //to the Login.jsp page.
            //with RequestDispatcher.forward(), the URL will still be
            //the current URL
            {
                response.sendRedirect("loginFormAdmin_error.jsp?error=yes");
            }
%>